---
title: LanceDB
---

LanceDB is an embedded vector database for AI applications. It is open source and distributed with an Apache-2.0 license.

LanceDB datasets are persisted to disk and can be shared between Node.js and Python.

## Setup

Install the [LanceDB](https://github.com/lancedb/lancedb) [Node.js bindings](https://www.npmjs.com/package/@lancedb/lancedb):

```bash npm
npm install -S @lancedb/lancedb
```
import IntegrationInstallTooltip from '/snippets/javascript-integrations/integration-install-tooltip.mdx';

<IntegrationInstallTooltip/>

```bash npm
npm install @langchain/openai @langchain/community @langchain/core
```

## Usage

### Create a new index from texts

import Fromtexts from "/snippets/javascript-integrations/examples/indexes/vector_stores/lancedb/fromTexts.mdx";

<Fromtexts />

### Create a new index from a loader

import Fromdocs from "/snippets/javascript-integrations/examples/indexes/vector_stores/lancedb/fromDocs.mdx";

<Fromdocs />

### Open an existing dataset

import Load from "/snippets/javascript-integrations/examples/indexes/vector_stores/lancedb/load.mdx";

<Load />

## Related

- Vector store [conceptual guide](/oss/concepts/#vectorstores)
- Vector store [how-to guides](/oss/how-to/#vectorstores)
